﻿@model Expenses.MvcUI.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}


<h2>Use a local account to log in.</h2>
<div class="fieldSet">
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset class="fieldset">
        <legend>Log in</legend>
        <div class="ulRowWithBottomMargin">
            <div class="label normalFlow">@Html.LabelFor(m => m.UserName)</div>
            <div class="textBox normalFlow">@Html.TextBoxFor(m => m.UserName)</div>
            @Html.ValidationMessageFor(m => m.UserName)
        </div>
        <div class="clearFlow"></div>
        <div class="ulRowWithBottomMargin">
            <div class="label normalFlow">@Html.LabelFor(m => m.Password)</div>
            <div class="textBox normalFlow">@Html.PasswordFor(m => m.Password)</div>
            @Html.ValidationMessageFor(m => m.Password)
        </div>
        <div class="clearFlow"></div>
        <div class="ulRow">
            <div class="textBox normalFlow">@Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })</div>
            <div class="label normalFlow">@Html.CheckBoxFor(m => m.RememberMe)</div>
        </div>
        <div class="clearFlow"></div>
        <input type="submit" value="Log in" class="button" />
    </fieldset>
    <p>
        @Html.ActionLink("Register", "Register", new { Culture = ViewBag.Culture, returnUrl = ViewBag.ReturnUrl }) if you don't have an account.
    </p>
}
</div>

<div>
    <h2>Use another service to log in.</h2>
    <img src="../../Images/SocialNetworks.png" height="40"/>
    @*@Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })*@
</div>

